using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.OleDb;
using Ras2ClassLib.Common.Data;

namespace Ras2ClassLib
{
	public class FlytjandiDoc : BaseDocument
	{
		#region Public functions
		public FlytjandiCollection GetAllFlytjandi()
		{
			String strSQL = "select * from Flytjandi";
			return base.LoadCollection<FlytjandiCollection, Flytjandi>(strSQL);
		}

		public Flytjandi GetFlytjandi(int nID)
		{
			String strSQL = String.Format("select * from Flytjandi WHERE FlytjandiID={0}", nID);
			return base.LoadItem<Flytjandi>(strSQL);
		}

		public void UpdateFlytjandi(Flytjandi performer)
		{
			base.UpdateData(performer.GetTable());
		}

		public void AddFlytjandi(Flytjandi performer)
		{
			base.AddData(performer.GetTable());
		}
		#endregion
	}
}
